﻿@model NOSDC.Areas.Admin.Models.SpeakerCreateViewModel

@{
    ViewBag.Title = "Update";
}

<h2>Update a speaker</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>


@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Speaker information</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.Speaker.FirstName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Speaker.FirstName)
            @Html.ValidationMessageFor(model => model.Speaker.FirstName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Speaker.LastName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Speaker.LastName)
            @Html.ValidationMessageFor(model => model.Speaker.LastName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Speaker.Bio)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.Speaker.Bio, new { style = "width:620px;height:150px;" })
            @Html.ValidationMessageFor(model => model.Speaker.Bio)
        </div>
        @Html.HiddenFor(model => model.Speaker.SpeakerId)
        <p>
            <input type="submit" value="Update" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

